#ifndef COM_BASIC_H
#define COM_BASIC_H
#include "QString"
#include "mytools.h"
#include "component_type.h"
class component{
private:
    QString name = "component_basic_name";
    QString iconPath = "";
    struct_img *s_img;
    C_TYPE type = UNK;

public:
    QString getName(){
        return this->name;
    }
    void setName(QString name_){
        this->name = name_;
    }
    void setS_Img(struct_img *s_img_){
        this->s_img = s_img_;
    }
    struct_img * getS_img(){
        return this->s_img;
    }
    C_TYPE getType(){
        return this->type;
    }
    void setType(C_TYPE type){
        this->type = type;
    }
    ~component(){
        mytools::closeImgByStruct(this->s_img);
    }
};
#endif



